package cn.git.demo.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 *
 *订单实体类
 *
 */
public class Order implements Serializable {
    private Long id;
    private Double orderPrice;   //order_price 订单价格
    private Double freight;  //运费
    private Double amountPay;   //amount_pay实付金额
    private Integer paymentWay;  //payment_way支付方式
    private Integer paymentCash;  //payment_cash,支付要求
    private Integer isPay;   //is_pay支付状态
    private Integer orderState;//order_state订单状态
    private Date createDate;//   create_date 创建时间
    private String note;   //备注
    private Long userId;


    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", orderPrice=" + orderPrice +
                ", freight=" + freight +
                ", amountPay=" + amountPay +
                ", paymentWay=" + paymentWay +
                ", paymentCash=" + paymentCash +
                ", isPay=" + isPay +
                ", orderState=" + orderState +
                ", createDate=" + createDate +
                ", note='" + note + '\'' +
                ", userId=" + userId +
                ", user=" + user +
                '}';
    }
    private static final long serialVersionUID= 1l;

    //    附加对象，user对象
    private User user;

    private List<OrderDetail> orderDetail;

    public List<OrderDetail> getOrderDetail() {
        return orderDetail;
    }

    public void setOrderDetail(List<OrderDetail> orderDetail) {
        this.orderDetail = orderDetail;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getIsPay() {
        return isPay;
    }

    public void setIsPay(Integer isPay) {
        this.isPay = isPay;
    }

    public Integer getOrderState() {
        return orderState;
    }

    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(Double orderPrice) {
        this.orderPrice = orderPrice;
    }

    public Double getFreight() {
        return freight;
    }

    public void setFreight(Double freight) {
        this.freight = freight;
    }

    public Double getAmountPay() {
        return amountPay;
    }

    public void setAmountPay(Double amountPay) {
        this.amountPay = amountPay;
    }

    public Integer getPaymentWay() {
        return paymentWay;
    }

    public void setPaymentWay(Integer paymentWay) {
        this.paymentWay = paymentWay;
    }

    public Integer getPaymentCash() {
        return paymentCash;
    }

    public void setPaymentCash(Integer paymentCash) {
        this.paymentCash = paymentCash;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
}
